Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add num-running-compaction-iterators statistic #13299

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

archang19
Copy link
Contributor

@archang19 archang19 commented Jan 15, 2025

Summary

The context for this PR is that I am currently working on a separate project, where I am trying to tune the read request sizes made by FilePrefetchBuffer to the storage backend. In this particular case, this means that FilePrefetchBuffer would issue large reads and have to buffer larger read responses. At least for the initial rollout, we only want to enable this optimization for compaction reads.

I want some way to get a sense of what the memory usage impact would be if the prefetch read request sizes is increased. Actually computing the total amount of memory allocated across FilePrefetchBuffers is possible, and I have another PR for that. However, it is more error prone and still does not give me exactly the information I want.

Basically, I want the number of files that compactions are actively reading from. With that information, I can determine how much memory would be used across these FilePrefetchBuffers for compaction only.

Test Plan

@archang19 archang19 force-pushed the internal-stats-compaction branch 4 times, most recently from afcda27 to 82e35bc Compare January 15, 2025 19:24
@archang19 archang19 changed the title Add internal stats for compaction prefetching [local] Add internal stats for compaction prefetching Jan 15, 2025
@archang19 archang19 force-pushed the internal-stats-compaction branch from 82e35bc to 6cf6ba5 Compare January 15, 2025 22:28
@archang19 archang19 changed the title [local] Add internal stats for compaction prefetching Expose file prefetch buffer memory usage as a statistic Jan 15, 2025
@archang19 archang19 force-pushed the internal-stats-compaction branch from 6cf6ba5 to a9eeec8 Compare January 17, 2025 23:40
@archang19 archang19 changed the title Expose file prefetch buffer memory usage as a statistic Add num-running-compaction-iterators statistic Jan 17, 2025
@archang19 archang19 force-pushed the internal-stats-compaction branch 2 times, most recently from 262484d to d54482e Compare January 18, 2025 00:19
@archang19 archang19 force-pushed the internal-stats-compaction branch from d54482e to 97c42b2 Compare January 18, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants